package com.devenv;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * DevEnv开源版本主应用类
 * 智能开发环境部署工具 - 开源核心版本
 * 
 * @author DevEnv OpenSource Team
 * @version 1.0.0-opensource
 * @since 2024
 */
@SpringBootApplication(exclude = {
    RedisRepositoriesAutoConfiguration.class
})
@EnableScheduling
@EnableCaching
@EnableJpaRepositories(basePackages = {
    "com.devenv.repository"
})
public class DevEnvOpenSourceApplication {

    public static void main(String[] args) {
        SpringApplication.run(DevEnvOpenSourceApplication.class, args);
        System.out.println("==========================================");
        System.out.println("  DevEnv OpenSource Edition Started!");
        System.out.println("  Version: 1.0.0-opensource");
        System.out.println("  License: MIT");
        System.out.println("  Docs: https://docs.devenv.example.com");
        System.out.println("==========================================");
    }
}
